package cn.jly.spring.annotation.ioc.factorybean;

import cn.jly.spring.annotation.ioc.bean.Color;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author lanyangji
 * @description color工厂bean
 * @date 2020/11/12 下午 3:27
 */
public class ColorFactoryBean implements FactoryBean<Color> {
    public Color getObject() throws Exception {
        return new Color("color");
    }

    public Class<?> getObjectType() {
        return Color.class;
    }

    public boolean isSingleton() {
        return true;
    }
}
